//
//  baseView.m
//  mintHome
//
//  Created by 朱彦名 on 16/6/20.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import "baseView.h"

@implementation baseView


- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        if ([[AccountManager sharedInstance] isNight]) {
            [self setNightDay];
            
        }else{
            
            [self setLightDay];
            
        }
        
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setLightDay) name:@"day" object:nil];
        
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setNightDay) name:@"night" object:nil];
    }
    return self;
}


- (void)setLightDay {
    NSLog(@"设置白天模式成功");
}

- (void)setNightDay {
    NSLog(@"设置夜晚模式成功");
}


@end
